<!-- 设备缺陷记录 sbqxjlList.jsp -->
<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="frm.ssh.util.page.SearchBean"%>
<%@ include file="/jsp/common/common.jsp"%>

<html>
	<head>
		<script language="javascript" src="<%=contextPath%>/js/func.js"type=""></script>
		<script language="javascript" src="<%=contextPath%>/js/sorttable.js"type=""></script>
		<link rel="stylesheet" type="text/css"	href="<%=contextPath%>/css/sorttable.css">
		<script type="text/javascript" src="<%=contextPath%>/js/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="<%=contextPath%>/js/jquery.form.js"></script>
		<script>
			Ext.onReady(function(){
				var tb = new Ext.Toolbar({
			   		renderTo: document.all.tbar,
			    	items: [
				        {
				            text: '查询',
				            icon:"<%=contextPath%>/images/query.gif",
				            handler:cmt
				        },'-',
				        {
				            text: '清空',
				            icon:"<%=contextPath%>/images/clear.png",
				            handler:resetForm
				        }
				       
				        ,'->',
				        {
				            text: '查询条件',
				            icon:"<%=contextPath%>/images/down_bottom.gif",
				            handler:displayquerydiv
				        }
				        
			    	]
			    });
			});
		</script>
	</head>
	<body>
		<div id ='tbar'></div>
		<br>
		<div id="Layer" style="position:absolute;display:block left:0px; top:35px; width:100%; height:94%; z-index:1000; overflow:auto;">
		
		<form id="frmM" name="frmM" method="POST" action="<%=contextPath%>/queryUser.do">
			<s:hidden name="searchBean.displayFlag" />		
			<s:hidden name="searchBean.con1" />
			<s:hidden name="searchBean.con5" />
			<s:hidden name="searchBean.con6" />
			<table width="100%" id="contab">
				<tbody id="querydiv">
				<tr>
					<th>
						缺陷日期：
					</th>
					<td>
						<input type="text" size="12" readonly="true" name="searchBean.con2"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('searchBean.con2')})" id="searchBean.con2" value="${searchBean.con2}"/>
						<img onclick="WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('searchBean.con2')})" src="<%=contextPath%>/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">
						&nbsp;
						~
						&nbsp;
						<input type="text" size="12" readonly="true" name="searchBean.con3"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('searchBean.con3')})" id="searchBean.con3" value="${searchBean.con3}"/>
						<img onclick="WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('searchBean.con3')})" src="<%=contextPath%>/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">
					</td>
					
				</tr>
				
				</tbody>
			</table>
			
			<hr>
			<table width="100%" id="listtab">
			<thead>
				<tr>
					<td  class="DataTable_Title"  width="25">
						
					</td>
					<td  class="DataTable_Title" style="font-size:12px;font-weight:bold;"  width="120">工区</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" width="120">保护班</td>					
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" width="120">检修班</td>
					<td   class="DataTable_Title" style="font-size:12px;font-weight:bold;" width="120">变压器班</td>
				</tr>
				</thead>
				
						<tr >
						
						<td width="120" >
							发生缺陷条数
						</td>
						<td width="60">&nbsp;<c:out value="${gqfs_total}"/></td>
						<td style="text-align: left" width="200">
							<c:out value="${bhbfs_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${jxbfs_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${byqbfs_total}"/>
						</td>
					</tr>
					
					<tr  >
						
						<td width="120" >
							紧急缺陷发生条数
						</td>
						<td width="60">&nbsp;<c:out value="${gqjjfs_total}"/></td>
						<td style="text-align: left" width="200">
							<c:out value="${bhbjjfs_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${jxbjjfs_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${byqbjjfs_total}"/>
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							紧急缺陷消除条数
						</td>
						<td width="60">&nbsp;<c:out value="${gqjjxc_total}"/></td>
						<td style="text-align: left" width="200">
							<c:out value="${bhbjjxc_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${jxbjjxc_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${byqbjjxc_total}"/>
						</td>
					</tr>
			      <tr  >
						
						<td width="120" >
							重大缺陷发生条数
						</td>
						<td width="60">&nbsp;<c:out value="${gqzdfs_total}"/></td>
						<td style="text-align: left" width="200">
							<c:out value="${bhbzdfs_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${jxbzdfs_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${byqbzdfs_total}"/>
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							重大缺陷消除条数
						</td>
						<td width="60">&nbsp;<c:out value="${gqzdxc_total}"/></td>
						<td style="text-align: left" width="200">
							<c:out value="${bhbzdxc_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${jxbzdxc_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${byqbzdxc_total}"/>
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							消除遗留缺陷条数
						</td>
						<td width="60">&nbsp;<c:out value="${gqyl_total}"/></td>
						<td style="text-align: left" width="200">
							<c:out value="${bhbyl_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${jxbyl_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${byqbyl_total}"/>
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							消除缺陷条数
						</td>
						<td width="60">&nbsp;<c:out value="${gqxq_total}"/></td>
						<td style="text-align: left" width="200">
							<c:out value="${bhbxq_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${jxbxq_total}"/>
						</td>
						<td style="text-align: left" width="200">
							<c:out value="${byqbxq_total}"/>
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							缺陷消除率
						</td>
						<td width="60">&nbsp;
						<fmt:formatNumber type="percent" value="${(gqjjxc_total+gqzdxc_total)/gqfs_total}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(bhbjjxc_total+bhbzdxc_total)/bhbfs_total}" maxFractionDigits="2"/>
							
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(jxbjjxc_total+jxbzdxc_total)/jxbfs_total}" maxFractionDigits="2"/>
							
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(byqbjjxc_total+byqbzdxc_total)/byqbfs_total}" maxFractionDigits="2"/>
							
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							紧急缺陷消除率
						</td>
						<td width="60">&nbsp;
						<fmt:formatNumber type="percent" value="${(gqjjxc_total)/gqjjfs_total}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(bhbjjxc_total)/bhbjjfs_total}" maxFractionDigits="2"/>
						
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(jxbjjxc_total)/jxbjjfs_total}" maxFractionDigits="2"/>
							
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(byqbjjxc_total)/byqbjjfs_total}" maxFractionDigits="2"/>
							
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							重大缺陷消除率
						</td>
						<td width="60">&nbsp;
						<fmt:formatNumber type="percent" value="${(gqzdxc_total)/gqzdfs_total}" maxFractionDigits="2"/>
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(bhbzdxc_total)/bhbzdfs_total}" maxFractionDigits="2"/>
							
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(jxbzdxc_total)/jxbzdfs_total}" maxFractionDigits="2"/>
							
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(byqbzdxc_total)/byqbzdfs_total}" maxFractionDigits="2"/>
							
						</td>
					</tr>
					<tr  >
						
						<td width="120" >
							综合缺陷消除率
						</td>
						<td width="60">&nbsp;
						<fmt:formatNumber type="percent" value="${(gqxq_total)/gqfs_total}" maxFractionDigits="2"/>
					
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(bhbxq_total)/bhbfs_total}" maxFractionDigits="2"/>
						
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(jxbxq_total)/jxbfs_total}" maxFractionDigits="2"/>
							
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="percent" value="${(byqbxq_total)/byqbfs_total}" maxFractionDigits="2"/>
						
						</td>
					</tr>
					<tr >
						<td width="120" >
							平均消缺天数
						</td>
						<td width="60">
						<fmt:formatNumber type="number" value="${(gqxqts_total)/gqqxs_total}" maxFractionDigits="0"/>
					
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="number" value="${(bhbxqts_total)/bhbqxs_total}" maxFractionDigits="0"/>
						
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="number" value="${(jxbxqts_total)/jxbqxs_total}" maxFractionDigits="0"/>
							
						</td>
						<td style="text-align: left" width="200">
						<fmt:formatNumber type="number" value="${(byqbxqts_total)/byqbqxs_total}" maxFractionDigits="0"/>
						
						</td>
					</tr>
			</table>
			<table width="100%" id="tablestyle2">
				<tr>
					<td>
						<hr />
					</td>
				</tr>
				<tr>
					<td>${pageDown}</td>
				</tr>
			</table>
		</form>
		<iframe id="ifrDownLoad" style="display:none" src=""></iframe>	
		</div>
	</body>
</html>
<script type="text/javascript">
	var st = new SortableTable(document.getElementById("listtab"),["None","String","String","String","String","String","None", "None","String","None"]);
</script>
<script language="javascript">

			// 查询
			function cmt(){
				document.frmM.action = "<%=contextPath%>/sbqxjlList!clqxtj.do?page=1&c=c&searchBean.con15=";
				document.frmM.submit();
			}

			
			
		</script>